/*
 * Copyright ©2021 su binglun(9085309@qq.com). All rights reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 *---------------------------------------------------------------------
 *-                                                                   -
 *-           Website : http://phoenix.sunny360.cn/                   -
 *-                                                                   -
 *---------------------------------------------------------------------
 */
package cn.sunny360.core.service;

import cn.sunny360.core.common.PhResult;
import io.vertx.core.Promise;
import io.vertx.core.json.JsonArray;
import io.vertx.core.json.JsonObject;

import java.util.List;

/**
 * A service interface managing Linkman.
 *
 * @author subl
 */
public interface LinkmanService {

  LinkmanService getLinkmanList(Long userId, Promise<JsonArray> handler);
  
  LinkmanService addLinkman(Long userId, Long linkmanId, Promise<String> handler);
  
  LinkmanService removeLinkman(Long userId, Long linkmanId, Promise<String> handler);
  
  LinkmanService updateLinkTime(Long userId, Long linkmanId, Promise<String> handler);

  LinkmanService applyLinkman(Long masterId, Long applyUserId, String source, String comment, String ownerAlias, Promise<PhResult> handler);

  LinkmanService getApplyList(Long userId, Promise<List<JsonObject>> handler);

  LinkmanService feedApply(Long applyId, Integer feedStatus, String feedComment, String alias, Promise<PhResult> handler);
}

